/*    */ package com.wgcloud.controller;
/*    */ 
/*    */ import com.wgcloud.config.CommonConfig;
/*    */ import com.wgcloud.util.staticvar.StaticKeys;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.ui.Model;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/ssh2"})
/*    */ public class WebSSHController
/*    */ {
/*    */   @Autowired
/*    */   CommonConfig commonConfig;
/*    */   
/*    */   @RequestMapping({"view"})
/*    */   public String view(Model model, HttpServletRequest request) {
/* 29 */     String hostname = request.getParameter("hostname");
/* 30 */     model.addAttribute("hostname", request.getParameter("hostname"));
/* 31 */     model.addAttribute("webSocketPort", this.commonConfig.getWebSshPort());
/* 32 */     model.addAttribute("remark", (StaticKeys.HOST_MAP.get(hostname) == null) ? "" : StaticKeys.HOST_MAP.get(hostname));
/* 33 */     return "ssh/ssh";
/*    */   }
/*    */ }


/* Location:              /Users/zhangyongxin/soft-install/wgcloud/wgcloud-v3.3.5/server/bank/wgcloud-server-release.jar!/BOOT-INF/classes/com/wgcloud/controller/WebSSHController.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */